Global $Lite = ObjCreate("SERFLITEMAX20.Core.Main")
$Lite.StartFishing
Global $GUID = 0
Global $CheckGUID = 0
While 1
	If $Lite.BobberValid  Then
		If $Lite.Bobber.Bobbing Then
			;check make sure your not gonna attack something
			if Not $Lite.HasTarget then
				;rich click bobber 3 times to catch fish
				Sleep(5)
				MouseClick("right")
				Sleep(250)
				MouseClick("right")
				Sleep(250)
			EndIf
		EndIf
	endif

	Sleep(5)
WEnd
